
#include <asset/assetlocator.h>

ceAssetLocator::ceAssetLocator ()
  : _name (std::string (""))
  , _location (std::string(""))
{
}



ceAssetLocator::ceAssetLocator(const char* name, const char* location)
{
	if (name)
		{
			_name = name;
		}

	if (location)
		{
			_location = location;
		}
	else
		{
			_location = name;
		}
}

const char* ceAssetLocator::GetLocation() const
{
	return _location.c_str();
}

const char* ceAssetLocator::GetName() const
{
	return _name.c_str();
}
